-- GENERATED SPELL FOR [Vargul Assailant] --


function spell0_30471(pUnit, Event) --@Chop,n/a--
pUnit:FullCastSpellOnTarget(43410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30471', 5252, 1)
end

function spell1_30471(pUnit, Event) --@Demoralize,n/a--
pUnit:FullCastSpellOnTarget(23262,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30471', 30281, 1)
end

function Sorts_30471(pUnit, Event)
local choix_sorts_30471 = math.random(0, 1)
if choix_sorts_30471 == 0 then
pUnit:RegisterEvent('spell0_30471', 1, 1)
end
if choix_sorts_30471 == 1 then
pUnit:RegisterEvent('spell1_30471', 1, 1)
end
end

function mob30471_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30471', math.random(1500, 3000), 1)
end

function mob30471_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30471_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30471_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30471, 1, 'mob30471_Action')
RegisterUnitEvent(30471, 2, 'mob30471_Leave')
RegisterUnitEvent(30471, 3, 'mob30471_Kill')
RegisterUnitEvent(30471, 4, 'mob30471_Die')
